package com.wfuhui.modules.oms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfuhui.modules.oms.dao.BalanceRecordDao;
import com.wfuhui.modules.oms.entity.BalanceRecordEntity;
import com.wfuhui.modules.oms.service.BalanceRecordService;



@Service("balanceRecordService")
public class BalanceRecordServiceImpl implements BalanceRecordService {
	@Autowired
	private BalanceRecordDao balanceRecordDao;
	
	@Override
	public BalanceRecordEntity queryObject(Integer id){
		return balanceRecordDao.queryObject(id);
	}
	
	@Override
	public List<BalanceRecordEntity> queryList(Map<String, Object> map){
		return balanceRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return balanceRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(BalanceRecordEntity balanceRecord){
		balanceRecordDao.save(balanceRecord);
	}
	
	@Override
	public void update(BalanceRecordEntity balanceRecord){
		balanceRecordDao.update(balanceRecord);
	}
	
	@Override
	public void delete(Integer id){
		balanceRecordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		balanceRecordDao.deleteBatch(ids);
	}
	
}
